package com.yej.aiPolice.model.net

import com.yej.aiPolice.model.beans.Article
import com.yej.aiPolice.model.beans.ResponseInfo
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface NetService {
    @GET("index")
    fun getNewsIndexInfo(@Query("key") key:String):Call<Article>

    @GET("phonelogin/{phone}/{code}")
    fun loginByPhone(@Path("phone") phone: String, @Path("code") code: String):Call<ResponseInfo>

    @GET("phonedenews")
    fun getNewsList():Call<ResponseInfo>
}
